package org.wangpf.service.form;

import org.wangpf.util.ParameterFactory;

public class PageQueryForm extends QueryForm implements IPageQueryForm {

	private int pageIndex;
	private int pageSize;

	public int getPageIndex() {
		return pageIndex < 1 ? 1 : pageIndex;
	}

	public int getPageSize() {
		return pageSize < 1 ? ParameterFactory.getInt("SYSTEM_DEFAULTPAGESIZE",
				25) : pageSize;
	}

	public void setPageIndex(int pageIndex) {
		this.pageIndex = pageIndex;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

}
